﻿<%@ Page Title="Listado de Legajos" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="wfrmLegajoListar.aspx.cs" Inherits="PresentationLayer.wfrmLegajoListar" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxDocking" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .botones
        {
            width: 100px;
            padding: 0.5em 0.75em;
        }
        .filas
        {
            padding: 0.5em 0.75em;
        }
        .dxpControl_BlackGlass
        {
            font: 12px Tahoma;
            color: black;
        }
        .dxpSummary_BlackGlass
        {
            white-space: nowrap;
            text-align: center;
            vertical-align: middle;
            padding: 0px;
        }
        .dxpDisabled_BlackGlass
        {
            color: #9f9f9f;
            border-color: #9f9f9f;
            cursor: default;
        }
        
        .dxpDisabledButton_BlackGlass
        {
            text-decoration: none;
        }
        .dxpButton_BlackGlass
        {
            color: #3e6b96;
            text-decoration: underline;
            white-space: nowrap;
            text-align: center;
            vertical-align: middle;
        }
        .dxpCurrentPageNumber_BlackGlass
        {
            color: White;
            background-color: #3e6b96;
            text-decoration: underline;
            padding: 0px 3px;
            white-space: nowrap;
        }
        .dxpPageNumber_BlackGlass
        {
            color: #3e6b96;
            text-decoration: underline;
            text-align: center;
            vertical-align: middle;
            padding: 0px 3px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" HeaderText="Listado de Legajos" Width="100%" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" GroupBoxCaptionOffsetY="-22px"
                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
                <HeaderStyle Height="23px">
                    <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
                </HeaderStyle>
                <PanelCollection>
                    <dx:PanelContent runat="server">
                        <table style="width: 97%;">
                            <tr>
                                <td class="style5">
                                    <table>
                                        <tr>
                                            <td>
                                                <dx:ASPxButton ID="btnNuevo" runat="server" OnClick="btnNuevo_Click" Text="Nuevo" CssClass="botones" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnModificar" runat="server" OnClick="btnModificar_Click" Text="Modificar" CssClass="botones" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnAnular" runat="server" Text="Anular" CssClass="botones" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                    <ClientSideEvents Click="function(s, e) { pcAnular.Show(); }" />
                                                </dx:ASPxButton>
                                            </td>
                                            <td>
                                                <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" CssClass="botones" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1" colspan="2">
                                    <dx:ASPxGridView ID="dgvLegajos" runat="server" AutoGenerateColumns="False" KeyFieldName="CLEG_LEGAJO" Width="100%" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                        OnAfterPerformCallback="dgvLegajos_AfterPerformCallback" OnPageIndexChanged="dgvLegajos_PageIndexChanged">
                                        <Columns>
                                            <dx:GridViewDataTextColumn Caption="N° Prelegajo" FieldName="CLEG_LEGAJO" ShowInCustomizationForm="True" VisibleIndex="0">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Tipo de Proceso" FieldName="CTAB_NOMTIPPRO" ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataDateColumn Caption="Fecha de Recepción" FieldName="DLEG_FECREC" ShowInCustomizationForm="True" UnboundType="DateTime" VisibleIndex="2" Width="100px">
                                                <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                                </PropertiesDateEdit>
                                            </dx:GridViewDataDateColumn>
                                            <dx:GridViewDataTextColumn Caption="Titulo" FieldName="CLEG_TITULO" ShowInCustomizationForm="True" VisibleIndex="3" Width="150px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Observaciones" FieldName="CLEG_OBSLEG" ShowInCustomizationForm="True" VisibleIndex="4" Width="300px">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="Estado" FieldName="CTAB_DESCRIP" ShowInCustomizationForm="True" VisibleIndex="5">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn Caption="COD" FieldName="CTAB_ESTLEG" ShowInCustomizationForm="True" VisibleIndex="8" Visible="false">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="CPER_NOMBRE" ShowInCustomizationForm="True" Visible="False" VisibleIndex="7">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="NPER_SECPER" ShowInCustomizationForm="True" Visible="False" VisibleIndex="6">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <Settings ShowFilterRow="True" />
                                        <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="1px">
                                            </CalendarHeader>
                                            <ProgressBar Height="25px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx:ASPxGridView>
                                </td>
                            </tr>
                            <tr>
                                <td class="style5">
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <div class="PopUp">
                            <dx:ASPxPopupControl ID="pcMensaje" runat="server" Width="400px" ClientInstanceName="pcMensaje" AllowResize="false" AllowDragging="false" PopupVerticalAlign="WindowCenter" PopupHorizontalAlign="WindowCenter"
                                Modal="true" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" ShowCloseButton="false" CloseAction="None" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl>
                                        <table width="100%">
                                            <tr>
                                                <td class="filas" align="center">
                                                    <dx:ASPxLabel ID="lblMensaje" runat="server" CssClass="centrar">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas" align="center">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" AutoPostBack="false" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                        <ClientSideEvents Click="function(s, e){pcMensaje.Hide();}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="pcAnular" runat="server" Width="400px" ClientInstanceName="pcAnular" AllowResize="false" AllowDragging="false" PopupVerticalAlign="WindowCenter" PopupHorizontalAlign="WindowCenter"
                                Modal="true" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" ShowCloseButton="false" CloseAction="None" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" HeaderText="Anular Legajo">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl>
                                        <table width="100%">
                                            <tr>
                                                <td align="center" class="filas" colspan="2">
                                                    ¿ Desea anular el Legajo ?
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas" align="right">
                                                    <dx:ASPxButton ID="btnAnularAceptar" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        OnClick="btnAnularAceptar_Click">
                                                        <ClientSideEvents Click="function(s, e){pcAnular.Hide();}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas" align="left">
                                                    <dx:ASPxButton ID="btnAnularCancelar" runat="server" Text="Cancelar" AutoPostBack="false" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                        <ClientSideEvents Click="function(s, e){pcAnular.Hide();}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </div>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
